Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tax Payable #223

Draft
wants to merge 12 commits into
base: version-15
Choose a base branch
from
Draft

Tax Payable #223

wants to merge 12 commits into from

Conversation

agritheory
Copy link
Owner

@agritheory agritheory commented Mar 22, 2024

#218
Sales Taxes and Charges, before being paid via Check Run (Outstanding Amount is $8.12)
image

Example Check Run
image

Example config (Sales Invoices and JEs allowed, other doctypes shouldn't be)
image

Example Payment Entry / output of Check Run
image

Satisfied Sales Tax Payable (Outstanding Amount is $0.00)
image

@agritheory agritheory marked this pull request as draft March 22, 2024 00:15
@agritheory
Copy link
Owner Author

agritheory commented Mar 22, 2024

@basawaraj-fosserp Would love to discuss this at our next meeting

@agritheory
Copy link
Owner Author

Not sure how to defeat this notification, otherwise this seems to be ready to go.

image

@agritheory agritheory marked this pull request as ready for review April 1, 2024 22:08
@agritheory agritheory added this to the v15.x.x milestone Apr 9, 2024
for tax in taxes:
si.append("taxes", tax)
si.save()
si.submit()
Copy link
Owner Author

@agritheory agritheory Apr 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add at least one Credit Note to reflect returned items and a Journal Entry to reflect a write off.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agritheory
Copy link
Owner Author

agritheory commented Apr 25, 2024

@basawaraj-fosserp Adjacent, potentially overlapping use case: commissions payable. Potentially appropriate for Sales Partner (Supplier) or Sales Person (Employee or Supplier) as party types. Also potentially freight payable.

@agritheory agritheory marked this pull request as draft May 8, 2024 20:19
@agritheory agritheory marked this pull request as ready for review May 8, 2024 20:22
@agritheory agritheory marked this pull request as draft May 29, 2024 14:10
@agritheory agritheory marked this pull request as ready for review June 5, 2024 00:39
@agritheory
Copy link
Owner Author

There's one TODO left as of 6/4/24, which is to pull in the supplier default payment terms and payment due date. Normally this would have a a "days after month end" style of payment, we can use 25 days for testing purposes.

agritheory and others added 10 commits June 4, 2024 20:44
outstanding amount is not updated
some other warnings need to be defeated
* ci: remove cypress, fix hrms install, conform

* ci: fix mypy error
* gl entry not created

* replace super class validate
…up.before_test' (#231)

* changes to added one credit note in setup.py

* remove outstanding > 0 condition to take return entry in sales invoice

* chech run creditnote test

* compatible chnages to v15
outstanding amount is not updated
some other warnings need to be defeated
@agritheory agritheory marked this pull request as draft June 5, 2024 00:46
@agritheory agritheory requested review from viralkansodiya and fproldan and removed request for viralkansodiya June 5, 2024 00:46
Copy link
Collaborator

@fproldan fproldan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just a couple of questions



class CheckRunSalesInvoice(SalesInvoice):
# TODO: update due date in taxes with validate hook
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is a TODO that I do not know if you want to do now

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fproldan I think this can be removed, but I will add a test to ensure it's working.

def on_submit(self):
for row in self.taxes:
if row.party and row.party_type:
row.outstanding_amount = row.tax_amount
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why here the outstanding_amount (and only this) is getting set again on_submit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fproldan @agritheory
I have removed the code mentioned by @fproldan and did some testing. Without this code, the calculation of the outstanding amount is also working perfectly.

We can remove this on_submit function from the overridden file.

@agritheory
Copy link
Owner Author

Todos as of 6/18/24:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants